package com.cate.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * @CreateTime: 2023/7/28
 * @Author: <==lhd==>
 * @Description:
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CategoryInfoDTO implements Serializable {

    private Long id;

    //类型: 1菜品分类 2套餐分类
    @Range(max = 2,min = 1,message = "type error")
    private Integer type;

    //分类名称
    private String name;

    // 排序
    @Min(value = 1,message = "sort error")
    private Integer sort;
}
